﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace VideoCache.Server.MVCWeb.Areas.Admin.Models
{
    public class SiteChannelModel
    {
        [Display(Name = "编号")]
        public int Id { get; set; }

        [Display(Name = "频道名称")]
        [Required(ErrorMessage = "频道名称不能为空。")]
        public string Name { get; set; }

        [Display(Name = "所属网站")]
        [Required(ErrorMessage = "所属网站不能为空。")]
        public int SiteId { get; set; }

        [Display(Name = "域名")]
        [Required(ErrorMessage = "域名不能为空")]
        public string Domain { get; set; }

        [Display(Name = "网址模板")]
        [Required(ErrorMessage = "网址模板不能为空")]
        public string UrlPattern { get; set; }

        [Display(Name = "程序集")]
        public string Assembly { get; set; }

        [Display(Name = "是否启用")]
        public bool Enable { get; set; }
    }
}